Skip to content

Align Python fallback client with Rust CLI (#911)#1379

Open
Jatin-Shihora wants to merge 1 commit into
google:mainfrom
Jatin-Shihora:py-align-fallback-client-911
Open

Align Python fallback client with Rust CLI (#911)#1379
Jatin-Shihora wants to merge 1 commit into
google:mainfrom
Jatin-Shihora:py-align-fallback-client-911

Conversation

@Jatin-Shihora
Copy link
Copy Markdown

Fixes #911

This will remove the --compatibility-mode (-c) flag and clean up how color output is handled in the CLI.

The compatibility flag originally existed to mimic the output of the Unix file command. Since that behavior effectively disappeared when the magic field was removed in v0.6.1. Since then, the flag has only acted as a no-op alias for --no-colors. The Rust CLI never supported this flag, so removing it also brings both implementations closer in behavior. I tried keeping both the CLIs logical working same.

Color handling has also been updated. Colors are now automatically disabled when stdout is not a TTY, which is same as how the Rust client behaves. The --colors and --no-colors flags can still be used to explicitly override this behavior.

Also, scripts using the Python fallback client that pass -c or --compatibility-mode will now fail with a “No such option” error.

@Jatin-Shihora Jatin-Shihora requested a review from reyammer as a code owner April 26, 2026 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Align the fallback python client with the new rust client

1 participant